xend: configuration option 'localtime = 1' is not honored for PV domains.
authorKeir Fraser <keir@xensource.com>
Sat, 12 May 2007 11:44:20 +0000 (12:44 +0100)
committerKeir Fraser <keir@xensource.com>
Sat, 12 May 2007 11:44:20 +0000 (12:44 +0100)
This patch fixes an oversight when platform_* config options were
collected in a dictionary.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
tools/python/xen/xend/XendDomainInfo.py

index 5c16baf6e79624e0606c9325c8b827d39ac59796..2d3174d8d7c87ea47871ec19cf663b777c32c8e8 100644 (file)
@@ -1472,8 +1472,7 @@ class XendDomainInfo:
         try:
             self.image = image.create(self, self.info)
 
-            localtime = self.info.get('platform_localtime', False)
-            if localtime:
+            if self.info['platform'].get('localtime', 0):
                 xc.domain_set_time_offset(self.domid)
 
             xc.domain_setcpuweight(self.domid, self.info['cpu_weight'])